<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 

<h:head></h:head> 
<body> 
	Record <h:outputText value="#{facilities.processType}" /> !!!
<br/><br/><br/><br/>

		<h:panelGrid columns="2" border="1" rendered="#{facilities.isInsertRecord}">
				<h:outputText value="" />
				<h:outputText value="New Data" />
				<h:outputText value="Facility Code :" />
				<h:outputText value="#{facilities.facilityCode}" />
			<h:outputText value="Facilities Desc :" />
				<h:outputText value="#{facilities.facilityDesc}" />
			<h:outputText value="Facilities Type :" />
				<h:outputText value="#{facilities.facilityType}" />
			<h:outputText value="Cal. Formula :" />
				<h:outputText value="#{facilities.facilityFormula}" />
			<h:outputText value="Fac. Unit Price :" />
				<h:outputText value="#{facilities.facilityUnitPrice}" />
		</h:panelGrid>

		<h:panelGrid columns="3" border="1" rendered="#{!facilities.isInsertRecord}">
				<h:outputText value="" />
				<h:outputText value="Previous Data" />
				<h:outputText value="New Data" />
				<h:outputText value="Facility Code :" />
				<h:outputText value="#{facilities.oldFCode}" />
				<h:outputText value="#{facilities.facilityCode}" />

			<h:outputText value="Facilities Desc :" />
				<h:outputText value="#{facilities.oldFDesc}" />
				<h:outputText value="#{facilities.facilityDesc}" />

			<h:outputText value="Facilities Type :" />
				<h:outputText value="#{facilities.oldFType}" />
				<h:outputText value="#{facilities.facilityType}" />

			<h:outputText value="Cal. Formula :" />
				<h:outputText value="#{facilities.oldFFormula}" />
				<h:outputText value="#{facilities.facilityFormula}" />
			
			<h:outputText value="Fac. Unit Price :" />
				<h:outputText value="#{facilities.oldFUnitPrice}" />
				<h:outputText value="#{facilities.facilityUnitPrice}" />
		</h:panelGrid>
<br /> 
<h:form>
	<h:commandButton value="Continous Input" action="#{facilities.newFacility()}" style="font-size:26px;" />
</h:form>
</body> 
</html>
